package hero.main;

import java.util.ArrayList;

import sqlHelp.DatabaseHelper;
import android.app.ListActivity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;


public class HeroesOfNewerthActivity extends ListActivity {
	/**
	 * Class members
	 */
	ListView lv;
	DatabaseHelper dbHelper = null ;
	SQLiteDatabase myDb = null;
	/**
	 * Class members
	 */
	
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	
    	
    	ArrayList<String> mainList = new ArrayList<String>();
    	
    	mainList.add("Heroes");
    	mainList.add("Guides");
    	mainList.add("Items");
    	mainList.add("Help");
    	
    	 ArrayAdapter<String> arrayAdapter =      
    	         new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, mainList);
    	 
    	setListAdapter(arrayAdapter);
    	
    	lv = getListView();
    	lv.setTextFilterEnabled(true);
    	
    	lv.setOnItemClickListener(new OnItemClickListener() {

				public void onItemClick(AdapterView<?> arg0, View arg1,
						int arg2, long arg3) {
					switch(arg2){
					case 0 :
						Intent i =  new Intent(HeroesOfNewerthActivity.this,HeroList.class);
						startActivity(i);
						
					case 1:
					case 2:
					case 3:
					}
					
				}
 		  });
    	
    	
    	
    	
    }
}